package lesson19;

public class NotepadDemo {
	
	public static void main(String[] args) {
		SimpleNotepade simNotepad = new SimpleNotepade(10);
		simNotepad.addText(1, "I am page 1");
		simNotepad.addText(2, "I am page 2");
		simNotepad.addText(3, "I am page 3");
		simNotepad.addText(4, "I am page 4");
		simNotepad.addText(5, "I am page 5");
		simNotepad.addText(6, "I am page 6");
		simNotepad.addText(7, "I am page 7"); 
		simNotepad.addText(8, "I am page 8");
		simNotepad.addText(9, "I am page 9");
		simNotepad.addText(10, "I am page 10");
		
		simNotepad.printPages();
		SecuredNotepade securedNotepad = new SecuredNotepade(3, "lala");
		securedNotepad.addText(1, "I am page 1");
		securedNotepad.addText(2, "I am page 2");
		securedNotepad.addText(3, "I am page 3");
		
		securedNotepad.printPages();
		
		simNotepad.replace(3, "I am replaced text");
		simNotepad.printPages();
	
		
		
		
	}
}
